package org.example.blog.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.blog.model.UserInfo;

import java.util.List;

@Mapper
public interface UserInfoMapper {
    @Select("select id,user_name,password,github_url from `user` where user_name = #{username} and delete_flag = 0")
    UserInfo selectByName(String name);

    @Select("select id,user_name,github_url from `user` where id = #{id} and delete_flag = 0")
    UserInfo selectById(Integer id);
}
